﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class getarea
    {
        public void getarea1(double L, double W) 
        {
            Console.WriteLine("长方形的面积为："+L*W);
        }
        public void getarea1(double r)
        {
            Console.WriteLine("圆的面积为："+3.14*r*r);        
        }
    }
}
